home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 123
/
(Vol 123) Jan 13 2011.iso
/
Games
/
island_fishing.swf
/
scripts
/
frame_103
/
PlaceObject2_152_14
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
next >
Wrap
Text File
|
2011-01-13
|
3KB
|
93 lines
onClipEvent(enterFrame){
if(this.canmove <= 0)
{
this._x = _root.hook._x;
this._y = _root.hook._y;
}
if(_root.fish2esc >= 1)
{
this.play();
this.hooked = 0;
_root.guy.gotoAndStop(1);
}
if(this.hitTest(_root.rodend))
{
unloadMovie(this);
_root.guy.head.gotoAndPlay("yar");
_root.fish = _root.fish + 1;
_root.scorepopup.score.text = "5";
_root.scorepopup.play();
_root.score = _root.score + 1;
_root.score = _root.score + 1;
_root.score = _root.score + 1;
_root.score = _root.score + 1;
_root.score = _root.score + 1;
_root.hunger = _root.hunger + 1;
_root.hunger = _root.hunger + 1;
_root.hunger = _root.hunger + 1;
_root.hunger = _root.hunger + 1;
_root.hunger = _root.hunger + 1;
_root.hunger = _root.hunger + 1;
_root.hunger = _root.hunger + 1;
_root.hunger = _root.hunger + 1;
_root.hunger = _root.hunger + 1;
_root.hunger = _root.hunger + 1;
}
if(this.hitTest(_root.hook))
{
if(_root.f1.hooked <= 0)
{
if(_root.f2.hooked <= 0)
{
if(_root.f3.hooked <= 0)
{
if(_root.f5.hooked <= 0)
{
if(_root.f6.hooked <= 0)
{
if(_root.f7.hooked <= 0)
{
if(_root.f8.hooked <= 0)
{
if(_root.f9.hooked <= 0)
{
if(_root.f10.hooked <= 0)
{
if(this.flashing <= 0)
{
_root.guy.gotoAndStop(2);
if(_root.hook._x < 540)
{
_root.hook._x += 0.25;
}
if(_root.hook._y < 390)
{
_root.hook._y += 0.25;
}
_root.fishtimer2.play();
this.canmove = 0;
this.hooked = 1;
this._x = _root.hook._x;
this._y = _root.hook._y;
}
else
{
this.canmove = 1;
this.hooked = 0;
if(this._y < 160)
{
this._y = 180;
}
}
}
}
}
}
}
}
}
}
}
}
}